package com.xiaoshuidi.cloud.module.contract.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
* 账单 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class ContractRentOrderVO {

    @Schema(description = "此订单开始时间")
    private Date startTime;

    @Schema(description = "业务id")
    private Long contractId;

    @Schema(description = "公寓id")
    private Long apartmentId;

    @Schema(description = "此订单结束时间")
    private Date endTime;

    @Schema(description = "租金金额", required = true)
    @NotNull(message = "租金金额不能为空")
    private BigDecimal amount;

}
